package com.iyundao.io.mapper;

import com.iyundao.io.model.WishSubmit;

import static org.apache.ibatis.jdbc.SqlBuilder.*;

public class WishSubmitSqlProvider {

    public String insertSelective(WishSubmit record) {
        BEGIN();
        INSERT_INTO("wishsubmit");
        
        if (record.getId() != null) {
            VALUES("id", "#{id,jdbcType=INTEGER}");
        }
        
        if (record.getSubmitnum() != null) {
            VALUES("submitnum", "#{submitnum,jdbcType=VARCHAR}");
        }
        
        if (record.getPartymemberid() != null) {
            VALUES("partymemberid", "#{partymemberid,jdbcType=INTEGER}");
        }
        
        if (record.getSubmittime() != null) {
            VALUES("submittime", "#{submittime,jdbcType=DATE}");
        }
        
        if (record.getSubmitsumintegral() != null) {
            VALUES("submitsumintegral", "#{submitsumintegral,jdbcType=INTEGER}");
        }
        
        return SQL();
    }
}